import request from '@/utils/request';
//辅助决策的接口文件

//天气接口
export function getWeatherInfo(data) {
  return request({
    url: `/largescreen/api/largeScree/weatherInfo?waringId=${data}`,
    method: 'get'
  });
}

//预警信息接口
export function getWarningInfo(data) {
  return request({
    url: `/largescreen/api/largeScree/waringInfo?waringId=${data}`,
    method: 'get'
  });
}

//周边分析
export function getSurroundingResource(query) {
  return request({
    url: `/largescreen/api/largeScree/getSurroundingResource`,
    method: 'get',
    params: query
  });
}

//数据监测 树状接口
export function getMonitorDeviceTree(query?) {
  return request({
    url: `/largescreen/api/largeScree/getMonitorDeviceTree`,
    method: 'get',
    params: query
  });
}

//站点运行数据接口 /monitor/{code}
export function getMonitor(data) {
  return request({
    url: `/largescreen/api/largeScree/monitor/${data}`,
    method: 'get'
  });
}

//主页四个按钮的接口数据
export function getGisList(query) {
  return request({
    url: `/largescreen/api/decision/getGisList`,
    method: 'get',
    params: query
  });
}

//获取视频监控的接口
export function getSurroundingVideo(query) {
  return request({
    url: `/largescreen/api/largeScree/getSurroundingVideo`,
    method: 'get',
    params: query
  });
}

// /api/decision/concentration 浓度标绘
export function getConcentration(data) {
  return request({
    url: `/largescreen/api/decision/concentration`,
    method: 'post',
    data: data
  });
}

//删除区域标绘
export function deleteAreHandler(ids) {
  return request({
    url: `/largescreen/warningDecision/${ids}`,
    method: 'delete'
  });
}

//周边资源树状图
export function getResourcesTree(query) {
  return request({
    url: `/largescreen/api/largeScree/getResourceTree`,
    method: 'get',
    params: query
  });
}

//获取管线数据
export function getCircleData(data) {
  return request({
    url: `/pipe/gis/circleData`,
    method: 'post',
    data: data
  });
}

//处置预案/getDisposalPlan

export function getDisposalPlan(query) {
  return request({
    url: `/largescreen/api/largeScree/getDisposalPlan`,
    method: 'get',
    params: query
  });
}

//查询该数据的详情
export function getResourceInfo(query) {
  return request({
    url: `/largescreen/api/largeScree/getResourceInfo`,
    method: 'get',
    params: query
  });
}
